<?php
$parent 	=$_REQUEST['parent'];
$parentname 	=$_REQUEST['name'];
/*
echo "<pre>";
print_r($this->Listscate);
echo "</pre>";
*/

if ($parentname =='cha')
{
	$loaicauhoi ="Chọn loại câu hỏi";
}
else
{
	$loaicauhoi ="Chọn Danh mục câu hỏi";
}

?>
<select id="categories_<?php echo $parentname ?>"  name="categories_<?php echo $parentname ?>">
<option value="0"><?php echo $loaicauhoi ?></option>
<?php

foreach ($this->Listscate AS $cate)
{						
	echo "<option value='$cate[ID]'>$cate[category_name]</option>";
}

?>
</select>
